﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WarehouseTransfer.aspx.cs" Inherits="WMS6.Web.GlobalControl.WarehouseTransfer" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>WarehouseTransfer</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
     <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newWarehouseTransfer()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "WarehouseTransfer.aspx?from="+escape(from);
            return false;
        }
   </script>     
</head>
<body>
    <form id="F13512" runat="server">
    <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
            
            <div id="div_top">
                <table>
                    <tr>
                        <td valign="bottom"><asp:Label ID="lblAllocateRule" runat="server" 
                                CssClass="label_header" Text="转仓" meta:resourcekey="lblAllocateRule"></asp:Label></td>
                        <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>" Enabled="False" 
                                onclick="btnGoBack_Click"  /></td>
                        <td><asp:Button ID="btnRefresh" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnRefresh%>"  
                                AccessKey="f"  Enabled="False" /></td>
                    </tr>
                </table>
            </div>
            
            
            <asp:UpdatePanel ID="up1" runat="server">
                <ContentTemplate>
                    <div>
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message" ></asp:Label>
                    </div>
                    
                    <div id="div_menu">
                        <div style="float: left; width: 8px;">
                            <div class="tabL" id="divL1"></div>
                        </div>
                        <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)" id="divM1">
                            <asp:Label ID="one1" CssClass="hover" runat="server" 
                                meta:resourcekey="one1">常规</asp:Label></div>
                        <div style="float: left; margin-right: 2px;">
                            <div class="tabR" id="divR1"></div>
                        </div>
                        
                        <div style="float: left; width: 8px;">
                            <div class="tabL_1" id="divL2"></div>
                        </div>
                        <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2);" id="divM2">
                            <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                                meta:resourcekey="one2">&nbsp;转仓单明细&nbsp;</asp:Label></div>
                        <div style="float: left; margin-right: 2px;">
                            <div class="tabR_1" id="divR2"></div>
                        </div>
                    </div>
                    
                    
                    <div id="div_content">
                         <div id="con_one_1" style="display: block;">
                             <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                                <tr>
                                    <td>
                                        <asp:Label ID="lblIntransitID" runat="server" Text="转仓单号" CssClass="label" 
                                            meta:resourcekey="lblIntransitID"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblOrderID" runat="server" Text="发货订单号" CssClass="label" 
                                            meta:resourcekey="lblOrderID"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblReceiptID" runat="server" Text="收货单号" CssClass="label" 
                                            meta:resourcekey="lblReceiptID"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:TextBox ID="txtIntransitID" runat="server" CssClass="textbox" 
                                            meta:resourcekey="txtIntransitID"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtOrderID" runat="server" CssClass="textbox" 
                                            meta:resourcekey="txtOrderID"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtReceiptID" runat="server" CssClass="textbox" 
                                            meta:resourcekey="txtReceiptID"></asp:TextBox>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <td>
                                        <asp:Label ID="lblSrcWhDBName" runat="server" Text="来源仓库" CssClass="label" 
                                            meta:resourcekey="lblSrcWhDBName"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblOwnerID" runat="server" Text="货主" CssClass="label" 
                                            meta:resourcekey="lblOwnerID"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblOrderDate" runat="server" Text="订单日期" CssClass="label" 
                                            meta:resourcekey="lblOrderDate"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:DropDownList ID="ddlSrcWhDBName" runat="server" CssClass="mediumselectbox" 
                                            meta:resourcekey="ddlSrcWhDBName"></asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" 
                                            meta:resourcekey="txtOwnerID"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtOrderDate" runat="server" CssClass="textbox" 
                                            meta:resourcekey="txtOrderDate"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,ddlDestWhDBName)" />
                            
                                    </td>
                                </tr>
                                
                                
                                <tr>
                                    <td>
                                        <asp:Label ID="lblDestWhDBName" runat="server" Text="目的仓库" CssClass="label" 
                                            meta:resourcekey="lblDestWhDBName"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblActualShipDate" runat="server" Text="实际发货日期" CssClass="label" 
                                            meta:resourcekey="lblActualShipDate"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblExpectedReceiptDate" runat="server" Text="预期到货日期" 
                                            CssClass="label" meta:resourcekey="lblExpectedReceiptDate"></asp:Label>
                                    </td>
                                </tr>
                                 <tr>
                                     <td>
                                         <asp:DropDownList ID="ddlDestWhDBName" runat="server" 
                                             CssClass="mediumselectbox" meta:resourcekey="ddlDestWhDBName">
                                         </asp:DropDownList>
                                               </td>
                                     <td>
                                         <asp:TextBox ID="txtActualShipDate" runat="server" CssClass="textbox" 
                                             meta:resourcekey="txtActualShipDate"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtActualShipDate)" />
                                     </td>
                                     <td>
                                         <asp:TextBox ID="txtExpectedReceiptDate" runat="server" CssClass="textbox" 
                                             meta:resourcekey="txtExpectedReceiptDate"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtExpectedReceiptDate)" />
                                     </td>
                                 </tr>
                                 <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                             </table>
                         </div>
                         
                         <div id="con_one_2" style="display: none;">
                             <table width="2500px" style="display: block; margin-left: 10px; margin-top: 10px;">
                                 <tr>
                                     <td>
                                     </td>
                                     <td>
                                     </td>
                                 </tr>
                                 <tr style="height: 10px;">
                                     <td>
                                     </td>
                                     <td>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td>
                                         <div>
                                             <asp:GridView ID="gvIntransitDetail" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                                                 CssClass="gridview" Width="2700px" AllowPaging="True" OnPageIndexChanging="gvIntransitDetail_PageIndexChanging"
                                                 DataKeyNames="INTRANSITID,LINEID" OnRowDataBound="gvIntransitDetail_RowDataBound"
                                                 OnSorting="gvIntransitDetail_Sorting" meta:resourcekey="gvIntransitDetail">
                                                 <FooterStyle CssClass="GridViewFooterStyle" />
                                                 <RowStyle CssClass="GridViewRowStyle" />
                                                 <HeaderStyle CssClass="GridViewHeaderStyle" />
                                                 <PagerStyle CssClass="GridViewPageStyle" />
                                                 <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                                 <Columns>
                                                     <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="BoundField">
                                                         <ItemStyle CssClass="GridViewRowWidth_40" />
                                                     </asp:BoundField>
                                                     <asp:BoundField DataField="LINEID" HeaderText="行号" FooterText="行号" SortExpression="LINEID"
                                                         meta:resourcekey="LINEID">
                                                         <ItemStyle CssClass="GridViewRowWidth_50" />
                                                     </asp:BoundField>
                                                     <asp:TemplateField HeaderText="明细" FooterText="明细" meta:resourcekey="TemplateField">
                                                         <ItemTemplate>
                                                             <a href='<%# FormatIntransitDetailUrl("WarehouseTransferDetail.aspx?ID={0}&LineID={1}&SrcDbID={2}",Eval("IntransitID").ToString(),Eval("LineID").ToString(),this.hdnSrcDbID.Value) %>'
                                                                 target="_self">
                                                                 <img src="../Images/icon_edit.gif" class="img" style="border: none 0px blue;" alt="receipt" /></a>
                                                         </ItemTemplate>
                                                         <ItemStyle CssClass="GridViewRowWidth_50" HorizontalAlign="Center" />
                                                     </asp:TemplateField>
                                                     <asp:BoundField DataField="SkuID" HeaderText="货品" FooterText="货品" SortExpression="SkuID"
                                                         meta:resourcekey="SkuID">
                                                         <ItemStyle CssClass="GridViewRowWidth_100" />
                                                     </asp:BoundField>
                                                     <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" 
                                                        SortExpression="SkuDescr" >
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblSkuDescr" runat="server" 
                                                                Text='<%# Eval("SkuDescr").ToString() %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle CssClass="GridViewRowWidth_200" />       
                                                     </asp:TemplateField>
                                                     <asp:BoundField DataField="PackID" HeaderText="包装" FooterText="包装" SortExpression="PackID"
                                                         meta:resourcekey="PackID">
                                                         <ItemStyle CssClass="GridViewRowWidth_100" />
                                                     </asp:BoundField>
                                                     <asp:BoundField DataField="UomDescr" HeaderText="单位" FooterText="单位" SortExpression="UomDescr"
                                                         meta:resourcekey="UomDescr">
                                                         <ItemStyle CssClass="GridViewRowWidth_100" />
                                                     </asp:BoundField>
                                                     <asp:TemplateField FooterText="转仓量" HeaderText="转仓量" SortExpression="QTY" meta:resourcekey="QTY">
                                                         <ItemTemplate>
                                                             <asp:Label ID="lblQty" runat="server" Text='<%# GetPreferenceDigit(Eval("QTY").ToString()) %>'
                                                                 meta:resourcekey="lblQty"></asp:Label>
                                                         </ItemTemplate>
                                                         <ItemStyle CssClass="GridViewRowWidth_100" />
                                                     </asp:TemplateField>
                                                     <asp:TemplateField FooterText="发货量" HeaderText="发货量" SortExpression="ShippedQty"
                                                         meta:resourcekey="ShippedQty">
                                                         <ItemTemplate>
                                                             <asp:Label ID="lblShippedQty" runat="server" Text='<%# GetPreferenceDigit(Eval("ShippedQty").ToString()) %>'
                                                                 meta:resourcekey="lblExpectedQtyResource2"></asp:Label>
                                                         </ItemTemplate>
                                                         <ItemStyle CssClass="GridViewRowWidth_100" />
                                                     </asp:TemplateField>
                                                     <asp:TemplateField FooterText="收货量" HeaderText="收货量" SortExpression="ReceivedQty"
                                                         meta:resourcekey="ReceivedQty">
                                                         <ItemTemplate>
                                                             <asp:Label ID="lblReceivedQty" runat="server" Text='<%# GetPreferenceDigit(Eval("ReceivedQty").ToString()) %>'
                                                                 meta:resourcekey="lblExpectedQtyResource3"></asp:Label>
                                                         </ItemTemplate>
                                                         <ItemStyle CssClass="GridViewRowWidth_100" />
                                                     </asp:TemplateField>
                                                     <asp:BoundField DataField="ExternalLot" HeaderText="外部批号" FooterText="外部批号" SortExpression="ExternalLot"
                                                         meta:resourcekey="ExternalLot">
                                                         <ItemStyle CssClass="GridViewRowWidth_150" />
                                                     </asp:BoundField>
                                                     <asp:BoundField DataField="LotAttr01" HeaderText="批次属性01" FooterText="批次属性01" SortExpression="LotAttr01"
                                                         meta:resourcekey="LotAttr01">
                                                         <ItemStyle CssClass="GridViewRowWidth_150" />
                                                     </asp:BoundField>
                                                     <asp:BoundField DataField="LotAttr02" HeaderText="批次属性02" FooterText="批次属性02" SortExpression="LotAttr02"
                                                         meta:resourcekey="LotAttr02">
                                                         <ItemStyle CssClass="GridViewRowWidth_150" />
                                                     </asp:BoundField>
                                                     <asp:BoundField DataField="LotAttr03" HeaderText="批次属性03" FooterText="批次属性03" SortExpression="LotAttr03"
                                                         meta:resourcekey="LotAttr03">
                                                         <ItemStyle CssClass="GridViewRowWidth_150" />
                                                     </asp:BoundField>
                                                     <asp:BoundField DataField="LotAttr04" HeaderText="批次属性04" FooterText="批次属性04" SortExpression="LotAttr04"
                                                         meta:resourcekey="LotAttr04">
                                                         <ItemStyle CssClass="GridViewRowWidth_150" />
                                                     </asp:BoundField>
                                                     <asp:BoundField DataField="LotAttr05" HeaderText="批次属性05" FooterText="批次属性05" SortExpression="LotAttr05"
                                                         meta:resourcekey="LotAttr05">
                                                         <ItemStyle CssClass="GridViewRowWidth_150" />
                                                     </asp:BoundField>
                                                     <asp:BoundField DataField="LotAttr06" HeaderText="批次属性06" FooterText="批次属性06" SortExpression="LotAttr06"
                                                         meta:resourcekey="LotAttr06">
                                                         <ItemStyle CssClass="GridViewRowWidth_150" />
                                                     </asp:BoundField>
                                                     <asp:BoundField DataField="LotAttr07" HeaderText="批次属性07" FooterText="批次属性07" SortExpression="LotAttr07"
                                                         meta:resourcekey="LotAttr07">
                                                         <ItemStyle CssClass="GridViewRowWidth_150" />
                                                     </asp:BoundField>
                                                     <asp:BoundField DataField="LotAttr08" HeaderText="批次属性08" FooterText="批次属性08" SortExpression="LotAttr08"
                                                         meta:resourcekey="LotAttr08">
                                                         <ItemStyle CssClass="GridViewRowWidth_150" />
                                                     </asp:BoundField>
                                                     <asp:BoundField DataField="LotAttr09" HeaderText="批次属性09" FooterText="批次属性09" SortExpression="LotAttr09"
                                                         meta:resourcekey="LotAttr09">
                                                         <ItemStyle CssClass="GridViewRowWidth_150" />
                                                     </asp:BoundField>
                                                     <asp:BoundField DataField="LotAttr10" HeaderText="批次属性10" FooterText="批次属性10" SortExpression="LotAttr10"
                                                         meta:resourcekey="LotAttr10">
                                                         <ItemStyle CssClass="GridViewRowWidth_150" />
                                                     </asp:BoundField>
                                                     <asp:TemplateField FooterText="生产日期" HeaderText="生产日期" SortExpression="ProduceDate"
                                                         meta:resourcekey="ProduceDate">
                                                         <ItemTemplate>
                                                             <asp:Label ID="lblProduceDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ProduceDate").ToString()) %>'
                                                                 meta:resourcekey="lblProduceDate"></asp:Label>
                                                         </ItemTemplate>
                                                         <ItemStyle CssClass="GridViewRowWidth_150" />
                                                     </asp:TemplateField>
                                                     <asp:TemplateField FooterText="失效日期" HeaderText="失效日期" SortExpression="ExpiryDate"
                                                         meta:resourcekey="ExpiryDate">
                                                         <ItemTemplate>
                                                             <asp:Label ID="lblExpiryDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ExpiryDate").ToString()) %>'
                                                                 meta:resourcekey="lblProduceDateResource2"></asp:Label>
                                                         </ItemTemplate>
                                                         <ItemStyle CssClass="GridViewRowWidth_150" />
                                                     </asp:TemplateField>
                                                 </Columns>
                                             </asp:GridView>
                                         </div>
                                     </td>
                                     <td>
                                     </td>
                                 </tr>
                                 <tr style="height: 30px;">
                                     <td>
                                     </td>
                                     <td>
                                     </td>
                                 </tr>
                             </table>
                         </div>
                     </div>
                    
                </ContentTemplate>
            </asp:UpdatePanel>
            
                <input type="hidden" id="hdnFrom" runat="server" />
                <input type="hidden" id="hdnIntransitID" runat="server" />
                <input type="hidden" id="hdnSrcDbID" runat="server" />
                <input type="hidden" id="hdnLineID" runat="server" />
                <input type="hidden" id="hdnDataFormat"  runat="server"/>  
                    <input type="hidden" id="hdncalendarFlag"  runat="server"/>  

    </div>
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenCalendarDiv();
		//-->
</script>
